package myschool.object.student;

public class Max {
    private int maxOne;
    private double maxTwo;

    public int max(int i,int j){
       /** if(i >= j){
            this.maxOne = i;
        }
        else{
            this.maxOne = j;
        }
        return this.maxOne;*/
       return i>=j?i:j;
    }
    public double max(double i,double j){
        if(i >= j){
            this.maxTwo = i;
        }
        else{
            this.maxTwo = j;
        }
        return this.maxTwo;
    }
    public double max(double i,double j,double k){
        if(i >= j && i >= k ){
            this.maxTwo = i;
        }
        else if(j >= i && j >= k ){
            this.maxTwo = j;
        }
        else {
            this.maxTwo = k;
        }
        return this.maxTwo;
    }


}
